const mongoose = require("mongoose");

// 定义骨架
const housesSchema = mongoose.Schema({
  house_id: Number,
  lease: String,
  price: Number,
  apartment: String,
  inform: Array,
  face: String,
  room: String,
  area: Number,
  floor: String,
  type: String,
  region: String,
  route: String,
  position: String,
  provide: Number,
  imgUrl: String,
});

// 创建模型
const housesModel = mongoose.model("houses", housesSchema);

module.exports = housesModel;
